package org.jeecg.modules.mstr.service;

import com.alibaba.fastjson.JSONObject;

/**
 * <p>
 * mstr接口 服务类
 * </p>
 *
 * @author liupan
 * @since 2019-05-22
 */
public interface IMstrApiService {

	/**
	 * mstr登录接口
	 * @param username
	 * @param password
	 * @return
	 */
	public String login(String username, String password) throws Exception;

	/**
	 * mstr退出接口
	 * @param token
	 * @return
	 * @throws Exception
	 */
	public Integer logout(String token) throws Exception;

	/**
	 * 获取report对象
	 * @param token
	 * @param projectId
	 * @param reportId
	 * @return
	 * @throws Exception
	 */
	public JSONObject report(String token, String projectId, String reportId) throws Exception;

	/***
	 *  校验token是否有效
	 * @param token
	 * @return
	 * @throws Exception
	 */
	public Integer session(String token) throws Exception;

	/**
	 * 获取车辆类型列表
	 * @param token
	 * @param projectId
	 * @param reportId
	 * @param attributeId
	 * @return
	 * @throws Exception
	 */
	public JSONObject getVehicleTypeList(String token, String projectId, String reportId, String attributeId) throws Exception;
}
